package com.example.sharding.vo;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * Created by mazeyi on 2019/12/3.
 */
@Entity
@Table
@Data
public class Order implements Serializable {

    private static final long serialVersionUID = 661434701950670670L;

    @Id
    private long orderId;

    private int userId;

    private long addressId;

    private String status;

    @Override
    public String toString() {
        return String.format("order_id: %s, user_id: %s, address_id: %s, status: %s", orderId, userId, addressId, status);
    }

}